package com.alisls.shequtao.service.goods.api;

import com.alisls.shequtao.service.goods.dto.SpecParamDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 规格参数接口
 *
 * @author Ke Wang
 */
@RequestMapping("/service-product/spec")
public interface SpecApi {

    @GetMapping("/listSpecParamsByCategoryIdAndSpecGroupId")
    List<SpecParamDTO> listSpecParamsByCategoryIdAndSpecGroupId(
            @RequestParam(value = "categoryId", required = true) Long categoryId,
            @RequestParam(value = "specGroupId", required = true) Long specGroupId);

}
